<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // alert("haha")
        // let name='bite'
        // let age=20
        // console.log(name,age)

        // let a=1
        // console.log(typeof(a))
        // a='b'
        // console.log(typeof(a))

        // console.log(10/0)
        // console.log(-10/0)
        // console.log("hahaha"-2)

        // console.log(1=='1')
        // console.log(1==='1')

        let num=prompt("请输入数字");
        switch(parseInt(num))
        {
            case 1:
                console.log("星期一");
                break;
            case 2:
                console.log("星期二");
                break;
            case 3:
                console.log("星期三");
                break;
            default:
                console.log("输入无效");
                break;
        }
    </script>
</body>
</html>